/* 为了避免导入模块名与HTML标签名一致时vue警告，所以类似HTML标签的单个词类模块名加前缀v */
import vMain from '../../views/template-item1/item-main1.vue'
import login from '../../views/template-item1/login/login.vue'
import fgetPassword from '../../views/template-item1/login/forget-password.vue' // 忘记密码
// 十大品牌
import brand from '../../views/template-item1/brand10'
// 品牌列表
import searchList from '../../views/template-item1/search-list'
// 品牌大全
import allBrand from '../../views/template-item1/all-brand'
import daquan from '../../views/template-item1/all-brand/components/daquan.vue'
import tuijian from '../../views/template-item1/all-brand/components/tuijian.vue'
import brand2B from '../../views/template-item1/brandInfo/brand2B.vue'// 商户端
import brand2C from '../../views/template-item1/brandInfo/brand2C.vue'// 用户端
// 品牌认领页面
import newClaim from '../../views/template-item1/all-brand/newClaim'
// 招商加盟
import join from '../../views/template-item1/join'

/*
 ***分割线--以上是页面路由
 ***分割线--以下是组件路由
 **先安照自己的意愿写，后期调整下就可以了
 */

/* *** */
import Home from '../../views/template-item1/home/Home.vue'
// 用户中心-新版本
import newpersonage from '../../views/template-item1/personage'
import user from '../../views/template-item1/personage/user.vue'
import msg from '../../views/template-item1/personage/msg.vue'
import set from '../../views/template-item1/personage/set.vue'
import enter from '../../views/template-item1/personage/enter.vue'

// 用户中心-编辑品牌信息-未编辑路由
import brandmsg from '../../views/template-item1/personage/BrandMsg.vue'
// 新闻资讯
import news from '../../views/template-item1/News/news.vue'
import details from '../../views/template-item1/News/details.vue'
// 榜上力量
import strength from '../../views/template-item1/Strength/strength.vue'
// 关于我们
import about from '../../views/template-item1/about'
// 添加报错页面
import wrong from '../../components/template-item1/wrong/index.vue'

const tempt1 = [
  {
    path: '/vMain/',
    component: vMain,
    meta: { title: '首页1' },
    children: [
      {
        path: '',
        name: '首页',
        meta: { title: '首页' },
        component: Home
      },
      {
        path: 'wrong',
        name: '404',
        meta: { title: '404' },
        component: wrong
      },
      {
        path: 'searchList',
        name: '搜索结果',
        meta: { title: '搜索结果' },
        component: searchList
      },
      {
        path: 'allBrand/',
        name: '所有品牌',
        // meta: { title: '所有品牌' },
        component: allBrand,
        children: [
          {
            path: '',
            name: '品牌大全',
            meta: { title: '品牌大全' },
            component: daquan
          },
          {
            path: 'tuijian',
            name: '品牌推荐',
            meta: { title: '品牌推荐' },
            component: tuijian
          },
          {
            path: 'brand2C',
            name: '用户侧',
            meta: { title: '用户侧' },
            component: brand2C
          },
          {
            path: 'brand2B',
            name: '品牌商端',
            meta: { title: '品牌商端' },
            component: brand2B
          }
        ]
      },
      {
        path: 'join',
        name: '招商加盟',
        meta: { title: '招商加盟' },
        component: join
      },
      {
        path: 'newpersonage',
        name: '用户中心最新版',
        meta: { title: '用户中心' },
        component: newpersonage,
        children: [
          {
            path: '',
            name: '用户资料',
            meta: { title: '用户资料' },
            component: user
          },
          {
            path: 'msg',
            name: '消息中心',
            meta: { title: '消息中心' },
            component: msg
          },
          {
            path: 'set',
            name: '设置中心',
            meta: { title: '设置中心' },
            component: set
          },
          {
            path: 'enter',
            name: '用户中心已认证',
            meta: { title: '用户中心' },
            component: enter
          }
        ]
      },
      {
        path: 'news',
        name: '新闻资讯',
        meta: { title: '新闻资讯' },
        component: news
      },
      {
        path: 'strength',
        name: '榜上力量',
        meta: { title: '榜上力量' },
        component: strength
      },
      {
        path: 'about',
        name: '关于我们',
        meta: { title: '关于我们' },
        component: about
      },
      {
        path: 'newClaim',
        name: '品牌认领',
        meta: { title: '品牌认领' },
        component: newClaim
      },
      {
        // 品牌编辑页
        path: 'brandmsg',
        name: '品牌编辑页',
        meta: { title: '品牌编辑页' },
        component: brandmsg
      },
      {
        path: 'details',
        name: '新闻详情页',
        meta: { title: '新闻详情页' },
        component: details
      }
    ]
  }, // vMain
  {
    path: '/login',
    name: '登录',
    meta: { title: '登录' },
    component: login
  },
  {
    path: '/fgetPassword',
    name: '忘记密码',
    meta: { title: '忘记密码' },
    component: fgetPassword
  },
  {
    path: '/brand',
    name: '十大品牌',
    meta: { title: '十大品牌' },
    /* meta: {
      requiresAuth: true
    }, */
    component: brand
  }
]

export default tempt1
